<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>
<xsl:include href='../xsl.include.main.xsl'/>


<xsl:template match="toApprove">

<table bgcolor="#EEEEEE" class="body_10px" border="0" cellspacing="0" cellpadding="3" width="100%">

<xsl:for-each select="testa">

<tr height="25px">


<td class="dotlin"  colspan="4"><b>Ci sono <xsl:value-of select="@item"/> utenti in attesa di conferma email 
   <xsl:choose>
      <xsl:when test="@numday=1">
            nelle ultime 24 ore
      </xsl:when>
      <xsl:otherwise>      
            negli ultimi <xsl:value-of select="@numday"/> giorni 
      </xsl:otherwise>
   </xsl:choose>
</b></td>
<td class="dotlin" colspan="2" align="center">
Vedi (
   <xsl:if test="@numday!=1">
      <a href="?numday=1">1</a>&#160;
   </xsl:if>    
   <xsl:if test="@numday!=3">
      <a href="?numday=3">3</a>&#160;
   </xsl:if>  
   <xsl:if test="@numday!=7">
      <a href="?numday=7">7</a>&#160;
   </xsl:if>  
   <xsl:if test="@numday!=15">
      <a href="?numday=15">15</a>&#160;
   </xsl:if>  
   <xsl:if test="@numday!=30">
      <a href="?numday=30">30</a>
   </xsl:if>  
   ) giorni
</td>

<td class="dotlin" > &#160; </td>
</tr>
<tr class="body">

<td><b>Nickname</b></td>
<td><b>email</b></td>
<td align="center" class="body_10px"><b>Conferma</b></td>
<td><b>Old user</b></td>
<td><b>Citta</b></td>
<td><b>Iscritto da</b></td>
<td><b>Ultimo login</b></td>

</tr>
</xsl:for-each>

<xsl:for-each select="row">

<tr>

<td>
<nobr>
   <xsl:call-template name="user">
      <xsl:with-param name="status" select="@uStatus"/>
      <xsl:with-param name="sexid" select="@sexid"/>
      <xsl:with-param name="certified" select="@certified"/>
      <xsl:with-param name="userid" select="@userid"/>
      <xsl:with-param name="nick" select="@nick"/>
      <xsl:with-param name="bold" select="0"/>
      <xsl:with-param name="buddy" select="0"/>
      <xsl:with-param name="newbie" select="@dayiscr&lt;15"/>
   </xsl:call-template>
</nobr>
</td>
<td>
<nobr>
<a class="body_10px_red" href="/mailbox/mailboxWrite.aspx?receiverGuid={@userid}"><img src="/imgs/mail_icon.jpg" border="0" heigth="15" width="15"/></a>
   &#160;
<a href="mailto:{@email}"><xsl:value-of select="@email"/></a></nobr>
</td>

<td align="center">
   <xsl:choose>
      <xsl:when test="(floor( @uStatus div 1 ) mod 2)">
         SI
      </xsl:when>
      <xsl:otherwise>
         
         <a href="?numday={@numday}&amp;userid={@userid}&amp;makeItPublic=1"><img border="0" src="/imgs/markedyes.gif"/></a>

      </xsl:otherwise>
   </xsl:choose>
</td>

<td>
   <xsl:choose>
      <xsl:when test="(floor( @uStatus div 2 ) mod 2)">
         <a href="?numday={@numday}&amp;userid={@userid}&amp;makeItPublic=2">SI</a>
      </xsl:when>
      <xsl:otherwise>
         <a href="?numday={@numday}&amp;userid={@userid}&amp;makeItPublic=2">NO</a>
      </xsl:otherwise>
   </xsl:choose>
</td>
<td>
  <xsl:value-of select="@answer"/>
  
</td>


<td>
   <xsl:value-of select="substring(@datetime,9,2)"/>-<xsl:value-of select="substring(@datetime,6,2)"/>-<xsl:value-of select="substring(@datetime,3,2)"/>&#160;                <xsl:value-of select="substring(@datetime,12,5)"/>
</td>


<td>
   <xsl:value-of select="substring(@lastlogin,9,2)"/>-<xsl:value-of select="substring(@lastlogin,6,2)"/>-<xsl:value-of select="substring(@lastlogin,3,2)"/>&#160;                <xsl:value-of select="substring(@lastlogin,12,5)"/>
</td>


</tr>
</xsl:for-each>
</table>
</xsl:template>

</xsl:stylesheet>
